﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    xmlns:controlsPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:delay="clr-namespace:Delay;assembly=PhonePerformance"
    xmlns:local="clr-namespace:PhoneInfo"
    xmlns:cc="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" 
    x:Class="PhoneInfo.Page.TypeData" Style="{StaticResource TransitionPageStyle}"
    SupportedOrientations="Portrait" Orientation="Portrait" toolkit:TiltEffect.IsTiltEnabled="True" 
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="false"
    >
    <phone:PhoneApplicationPage.Resources>
        <shell:ApplicationBar x:Key="AppBarSavePic"  BackgroundColor="#ff31b2e7" ForegroundColor="#ffffffff">
            <shell:ApplicationBarIconButton IconUri="Icon/info/i_yes.png" Text="保存图片" Click="save"/>
            <shell:ApplicationBarIconButton IconUri="Icon/info/i_cancel.png" Text="取消" Click="ApplicationBarIconButton_Click"/>
        </shell:ApplicationBar>
        <shell:ApplicationBar x:Key="AppBarSavePic1"  BackgroundColor="#212121" ForegroundColor="#ffffffff">
            <shell:ApplicationBarIconButton IconUri="Icon/black/i_yes.png" Text="保存图片" Click="save"/>
            <shell:ApplicationBarIconButton IconUri="Icon/black/i_cancel.png" Text="取消" Click="ApplicationBarIconButton_Click"/>
        </shell:ApplicationBar>
        <local:FixEmptyUrl x:Key="FixUrl"/>
        <Style x:Key="TabItemStyle1" TargetType="cc:TabItem">
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Background" Value="#FF1F3B53"/>
            <Setter Property="BorderBrush" Value="#FFA3AEB9"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Padding" Value="6,2,6,2"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
            <Setter Property="MinWidth" Value="5"/>
            <Setter Property="MinHeight" Value="5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="cc:TabItem">
                        <Grid x:Name="Root">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0"/>
                                        <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" 
                                                                      Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualTop">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" 
                                                                      Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualBottom">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" 
                                                                     Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualLeft">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" 
                                                                     Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualRight">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualTopSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" 
                                                                        Storyboard.TargetName="DisabledVisualTopUnSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualBottomSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualBottomUnSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualLeftSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualLeftUnSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualRightSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualRightUnSelected">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="SelectionStates">
                                    <VisualState x:Name="Unselected"/>
                                    <VisualState x:Name="Selected"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualTop">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualBottom">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualLeft">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualRight">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid x:Name="TemplateTopSelected" Visibility="Collapsed" Canvas.ZIndex="1">
                                <Border BorderBrush="White" BorderThickness="0" Background="White" CornerRadius="0,0,1,1" Margin="0,0,0,0">
                                    <Border BorderBrush="#FFFFFFFF" Background="#7db1c6" BorderThickness="0" CornerRadius="0,0,1,1">
                                        <!--<Border.Background>
                                            <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>-->
                                        <Grid>
                                            <!--<Rectangle Fill="DarkGray" Margin="0,-2,0,0"/>-->
                                            <Path Stroke="Wheat" Fill="White" Data="M 0,5 L -3,0 L 3,0 Z" Margin="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
                                            <ContentControl x:Name="HeaderTopSelected" Cursor="{TemplateBinding Cursor}" Foreground="White" 
                                                            FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                                            IsTabStop="False" Margin="{TemplateBinding Padding}" 
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="DarkBlue"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="FocusVisualTop" BorderBrush="White" BorderThickness="0" CornerRadius="0,0,3,3" IsHitTestVisible="false" Margin="0" Visibility="Collapsed"/>
                                <Border x:Name="DisabledVisualTopSelected" Background="#8CFFFFFF" CornerRadius="0,0,3,3" IsHitTestVisible="false" Margin="0" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateTopUnselected" Visibility="Collapsed">
                                <Border x:Name="BorderTop" BorderBrush="White" BorderThickness="0" Background="White" CornerRadius="0,0,3,3">
                                    <Border x:Name="GradientTop" BorderBrush="#FFFFFFFF" BorderThickness="0" CornerRadius="0,0,1,1" Background="#7db1c6">
                                        <Grid>
                                            <ContentControl x:Name="HeaderTopUnselected" 
                                                            Cursor="{TemplateBinding Cursor}" Foreground="#caedfb" FontSize="{TemplateBinding FontSize}"
                                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" 
                                                            Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="DisabledVisualTopUnSelected" Background="#8CFFFFFF" CornerRadius="0,0,3,3" IsHitTestVisible="false" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateBottomSelected" Visibility="Collapsed" Canvas.ZIndex="1">
                                <Border BorderBrush="White" BorderThickness="0" Background="White" CornerRadius="0,0,1,1" Margin="0,0,0,0">
                                    <Border BorderBrush="#FFFFFFFF" Background="#d6d6d6" BorderThickness="0" CornerRadius="0,0,1,1">
                                        <!--<Border.Background>
                                            <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>-->
                                        <Grid>
                                            <!--<Rectangle Fill="DarkGray" Margin="0,-2,0,0"/>-->
                                            <Path Stroke="Wheat" Fill="White" Data="M 0,10 L -7,0 L 7,0 Z" Margin="0" VerticalAlignment="Top" HorizontalAlignment="Center" />
                                            <ContentControl x:Name="HeaderBottomSelected" Cursor="{TemplateBinding Cursor}" Foreground="Black" 
                                                            FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                                            IsTabStop="False" Margin="{TemplateBinding Padding}" 
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="DarkBlue"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="FocusVisualBottom" BorderBrush="White" BorderThickness="0" CornerRadius="0,0,3,3" IsHitTestVisible="false" Margin="0" Visibility="Collapsed"/>
                                <Border x:Name="DisabledVisualBottomSelected" Background="#8CFFFFFF" CornerRadius="0,0,3,3" IsHitTestVisible="false" Margin="0" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateBottomUnselected" Visibility="Collapsed">
                                <Border x:Name="BorderBottom" BorderBrush="White" BorderThickness="0" Background="White" CornerRadius="0,0,3,3">
                                    <Border x:Name="GradientBottom" BorderBrush="#FFFFFFFF" BorderThickness="0" CornerRadius="0,0,1,1" Background="#d6d6d6">
                                        <Grid>
                                            <ContentControl x:Name="HeaderBottomUnselected" 
                                                            Cursor="{TemplateBinding Cursor}" Foreground="Black" FontSize="{TemplateBinding FontSize}"
                                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" 
                                                            Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="DisabledVisualBottomUnSelected" Background="#8CFFFFFF" CornerRadius="0,0,3,3" IsHitTestVisible="false" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateLeftSelected" Visibility="Collapsed" Canvas.ZIndex="1">
                                <Border BorderBrush="White" BorderThickness="1,1,0,1" Background="White" CornerRadius="3,0,0,3" Margin="-2,-2,0,-2">
                                    <Border BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius="1,0,0,1">
                                        <Border.Background>
                                            <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                        <Grid>
                                            <Rectangle Fill="Black" Margin="0,0,-2,0"/>
                                            <ContentControl x:Name="HeaderLeftSelected" Cursor="{TemplateBinding Cursor}" Foreground="White" 
                                                            FontSize="{TemplateBinding FontSize}" 
                                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                                            IsTabStop="False" Margin="{TemplateBinding Padding}" 
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="FocusVisualLeft" BorderBrush="White" BorderThickness="1,1,0,1" CornerRadius="3,0,0,3" 
                                        IsHitTestVisible="false" Margin="-2,-2,0,-2" Visibility="Collapsed"/>
                                <Border x:Name="DisabledVisualLeftSelected" Background="#8CFFFFFF" CornerRadius="3,0,0,3" IsHitTestVisible="false" 
                                        Margin="-2,-2,0,-2" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateLeftUnselected" Visibility="Collapsed">
                                <Border x:Name="BorderLeft" BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Background="White" CornerRadius="3,0,0,3">
                                    <Border x:Name="GradientLeft" BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius="1,0,0,1" Background="#FF272727">
                                        <Grid>
                                            <ContentControl x:Name="HeaderLeftUnselected" Cursor="{TemplateBinding Cursor}" Foreground="White" 
                                                            FontSize="{TemplateBinding FontSize}" 
                                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" 
                                                            Margin="{TemplateBinding Padding}"
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="DisabledVisualLeftUnSelected" Background="#8CFFFFFF" CornerRadius="3,0,0,3" IsHitTestVisible="false" 
                                        Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateRightSelected" Visibility="Collapsed" Canvas.ZIndex="1">
                                <Border BorderBrush="White" BorderThickness="0,1,1,1" Background="White" CornerRadius="0,3,3,0" Margin="0,-2,-2,-2">
                                    <Border BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius="0,1,1,0">
                                        <Border.Background>
                                            <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                        <Grid>
                                            <Rectangle Fill="Black" Margin="-2,0,0,0"/>
                                            <ContentControl x:Name="HeaderRightSelected" Cursor="{TemplateBinding Cursor}" Foreground="White"
                                                            FontSize="{TemplateBinding FontSize}"
                                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                                            IsTabStop="False" Margin="{TemplateBinding Padding}"
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="FocusVisualRight" BorderBrush="White" BorderThickness="0,1,1,1" CornerRadius="0,3,3,0" 
                                        IsHitTestVisible="false" Margin="0,-2,-2,-2" Visibility="Collapsed"/>
                                <Border x:Name="DisabledVisualRightSelected" Background="#8CFFFFFF" 
                                        CornerRadius="0,3,3,0" IsHitTestVisible="false" Margin="0,-2,-2,-2" Opacity="0"/>
                            </Grid>
                            <Grid x:Name="TemplateRightUnselected" Visibility="Collapsed">
                                <Border x:Name="BorderRight" BorderBrush="White" BorderThickness="1" Background="White" CornerRadius="0,3,3,0">
                                    <Border x:Name="GradientRight" BorderThickness="1" CornerRadius="0,1,1,0" Background="#FF272727">
                                        <Grid>
                                            <ContentControl x:Name="HeaderRightUnselected" Cursor="{TemplateBinding Cursor}" Foreground="White" 
                                                            FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                                            IsTabStop="False" Margin="{TemplateBinding Padding}" 
                                                            VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                        </Grid>
                                    </Border>
                                </Border>
                                <Border x:Name="DisabledVisualRightUnSelected" Background="#8CFFFFFF" CornerRadius="0,3,3,0" IsHitTestVisible="false" 
                                        Opacity="0"/>
                            </Grid>
                            <Border x:Name="FocusVisualElement" BorderBrush="white" BorderThickness="1" 
                                             CornerRadius="3,3,0,0" IsHitTestVisible="false" Margin="-1" Visibility="Collapsed" 
                                             d:IsHidden="True"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="PivotStyle1" TargetType="controls:Pivot">
            <Setter Property="Margin" Value="0"/>
            <Setter Property="Padding" Value="0"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <Grid/>
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="controls:Pivot">
                        <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid Background="{TemplateBinding Background}" CacheMode="BitmapCache" Grid.RowSpan="3"/>
                            <controlsPrimitives:PivotHeadersControl x:Name="HeadersListElement" Grid.Row="1"/>
                            <ItemsPresenter x:Name="PivotItemPresenter" Margin="{TemplateBinding Padding}" Grid.Row="2"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ListBoxStyle1" TargetType="ListBox">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="BorderBrush" Value="Transparent"/>
            <Setter Property="Padding" Value="0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBox">
                        <ItemsPresenter/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyle1" TargetType="Button">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Padding" Value="10,3,10,5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0" To="Pressed"/>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyleImage" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <CompositeTransform/>
                            </Grid.RenderTransform>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0" To="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualTransition>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image Source="/Icon/selectCenter/pkbtn.png" Stretch="None"/>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyle2" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <CompositeTransform/>
                            </Grid.RenderTransform>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0" To="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.9"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.9"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualTransition>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image Source="/Icon/selectCenter/forumbtn.png" Stretch="None"/>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyle3" TargetType="Button">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Padding" Value="10,3,10,5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="0">
                                <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="PhoneProgressBarSliderThumb" TargetType="Thumb">
            <Rectangle Fill="{TemplateBinding Foreground}" Height="4" IsHitTestVisible="False" Width="4"/>
        </ControlTemplate>
        <Style x:Key="PhoneProgressBarSliderStyle" TargetType="Slider">
            <Setter Property="Maximum" Value="3000"/>
            <Setter Property="Minimum" Value="0"/>
            <Setter Property="Value" Value="0"/>
            <Setter Property="Opacity" Value="0"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Slider">
                        <Grid IsHitTestVisible="False">
                            <Grid x:Name="HorizontalTemplate">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" Height="0" Template="{x:Null}"/>
                                <Thumb x:Name="HorizontalThumb" Grid.Column="1" Foreground="{TemplateBinding Foreground}" Height="4" IsTabStop="False" Template="{StaticResource PhoneProgressBarSliderThumb}"/>
                                <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" Height="0" Template="{x:Null}"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ProgressBarStyle1" TargetType="ProgressBar">
            <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="Background" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="Maximum" Value="100"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Padding" Value="{StaticResource PhoneHorizontalMargin}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ProgressBar">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Determinate"/>
                                    <VisualState x:Name="Indeterminate">
                                        <Storyboard Duration="00:00:04.4" RepeatBehavior="Forever">
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="IndeterminateRoot">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeterminateRoot">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider1">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseOut" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                                <LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseIn" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.2" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider2">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseOut" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                                <LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseIn" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.4" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider3">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseOut" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                                <LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseIn" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.6" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider4">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseOut" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                                <LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseIn" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.8" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider5">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseOut" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                                <LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
                                                    <EasingDoubleKeyFrame.EasingFunction>
                                                        <ExponentialEase EasingMode="EaseIn" Exponent="1"/>
                                                    </EasingDoubleKeyFrame.EasingFunction>
                                                </EasingDoubleKeyFrame>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider1">
                                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                                                <DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.2" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider2">
                                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                                                <DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.4" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider3">
                                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                                                <DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.6" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider4">
                                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                                                <DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.8" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider5">
                                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                                                <DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid x:Name="DeterminateRoot" Margin="{TemplateBinding Padding}" Visibility="Visible">
                                <Rectangle x:Name="ProgressBarTrack" Fill="{TemplateBinding Background}" Height="12"/>
                                <Rectangle x:Name="ProgressBarIndicator" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Height="12"/>
                            </Grid>
                            <Border x:Name="IndeterminateRoot" Margin="{TemplateBinding Padding}" Visibility="Collapsed">
                                <Grid>
                                    <Slider x:Name="Slider1" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
                                    <Slider x:Name="Slider2" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
                                    <Slider x:Name="Slider3" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
                                    <Slider x:Name="Slider4" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
                                    <Slider x:Name="Slider5" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
                                </Grid>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TabControlStyle1" TargetType="cc:TabControl">
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                        <GradientStop Color="#FFFEFEFE" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="cc:TabControl">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0"/>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualTop">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualBottom">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualLeft">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualRight">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid x:Name="TemplateTop" Visibility="Collapsed">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <System_Windows_Controls_Primitives:TabPanel x:Name="TabPanelTop" Margin="2,2,2,-1" Canvas.ZIndex="1"/>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0,0,3,3" MinWidth="10" MinHeight="10" Grid.Row="1">
                                    <ContentPresenter x:Name="ContentTop" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                </Border>
                                <Border x:Name="DisabledVisualTop" Background="#8CFFFFFF" CornerRadius="0,0,3,3" IsHitTestVisible="False" Opacity="0" Grid.Row="1" Grid.RowSpan="2" Canvas.ZIndex="1"/>
                            </Grid>
                            <Grid x:Name="TemplateBottom" Visibility="Collapsed">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <System_Windows_Controls_Primitives:TabPanel x:Name="TabPanelBottom" Margin="2,-1,2,2" Grid.Row="1" Canvas.ZIndex="1"/>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3,3,0,0" MinWidth="10" MinHeight="10">
                                    <ContentPresenter x:Name="ContentBottom" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                </Border>
                                <Border x:Name="DisabledVisualBottom" Background="#8CFFFFFF" CornerRadius="3,3,0,0" IsHitTestVisible="False" Opacity="0" Canvas.ZIndex="1"/>
                            </Grid>
                            <Grid x:Name="TemplateLeft" Visibility="Collapsed">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <System_Windows_Controls_Primitives:TabPanel x:Name="TabPanelLeft" Margin="2,2,-1,2" Canvas.ZIndex="1"/>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="1" CornerRadius="0,3,3,0" MinWidth="10" MinHeight="10">
                                    <ContentPresenter x:Name="ContentLeft" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                </Border>
                                <Border x:Name="DisabledVisualLeft" Background="#8CFFFFFF" Grid.Column="1" CornerRadius="0,3,3,0" IsHitTestVisible="False" Opacity="0" Canvas.ZIndex="1"/>
                            </Grid>
                            <Grid x:Name="TemplateRight" Visibility="Collapsed">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <System_Windows_Controls_Primitives:TabPanel x:Name="TabPanelRight" Grid.Column="1" Margin="-1,2,2,2" Canvas.ZIndex="1"/>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3,0,0,3" MinWidth="10" MinHeight="10">
                                    <ContentPresenter x:Name="ContentRight" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                                </Border>
                                <Border x:Name="DisabledVisualRight" Background="#8CFFFFFF" CornerRadius="3,0,0,3" IsHitTestVisible="False" Margin="0" Opacity="0" Canvas.ZIndex="1"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyle4" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid x:Name="grid" Background="Transparent" Width="208" Margin="0,0,52,0">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
                                            <ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
                                            <ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <TextBlock x:Name="textBlock" Margin="7,10,0,10" Text="{TemplateBinding Content}" FontSize="34.667"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="FontSize" Value="30"/>
        </Style>


    </phone:PhoneApplicationPage.Resources>
    <phone:PhoneApplicationPage.FontFamily>
        <StaticResource ResourceKey="PhoneFontFamilyNormal"/>
    </phone:PhoneApplicationPage.FontFamily>
    <phone:PhoneApplicationPage.FontSize>
        <StaticResource ResourceKey="PhoneFontSizeNormal"/>
    </phone:PhoneApplicationPage.FontSize>
    <phone:PhoneApplicationPage.Foreground>
        <StaticResource ResourceKey="PhoneForegroundBrush"/>
    </phone:PhoneApplicationPage.Foreground>
    <Grid x:Name="LayoutRoot" Background="{Binding cuTheme.TextBrush, Source={StaticResource Theme}}">
        <ProgressBar  Foreground="Orange" x:Name="ProgBar" Visibility="Visible"  IsIndeterminate="True" Height="10" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" Grid.ColumnSpan="2"  Width="480" />
        <Grid x:Name="GridForPivot">
            <controls:Pivot x:Name="mainPivot" Style="{StaticResource PivotStyle1}" Margin="0,129,0,8" SelectionChanged="Pivot_SelectionChanged">
                <controls:PivotItem x:Name="Paramater" Margin="12,10,0,0">
                    <controls:PivotItem.Header>
                        <TextBlock Text="参数"  Foreground="#025fae" FontSize="36"/>
                    </controls:PivotItem.Header>
                    <ListBox ItemsSource="{Binding TypeParameterItems}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                    <delay:FoodTemplateSelector.RenderTransform>
                                        <CompositeTransform/>
                                    </delay:FoodTemplateSelector.RenderTransform>
                                    <delay:FoodTemplateSelector.Head>
                                        <DataTemplate >
                                            <Grid Width="480"  Margin="5,5,5,0">
                                                <TextBlock Text="{Binding Title}"  Margin="0" FontSize="16"  VerticalAlignment="Bottom" Foreground="#FF076BAB"/>
                                            </Grid>
                                        </DataTemplate>
                                    </delay:FoodTemplateSelector.Head>
                                    <delay:FoodTemplateSelector.Main>
                                        <DataTemplate>
                                            <StackPanel Margin="5,10,5,0" Orientation="Horizontal">
                                                <TextBlock Text="{Binding Title}" Margin="0" FontSize="16" Foreground="#7b9ab7" Width="120"/>
                                                <TextBlock Text="{Binding Content}" TextWrapping="Wrap" Margin="0" FontSize="18" 
                                                               Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}" Width="350" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </delay:FoodTemplateSelector.Main>
                                </delay:FoodTemplateSelector>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </controls:PivotItem>
                <controls:PivotItem x:Name="TypePrice" Margin="12,10,0,0">
                    <controls:PivotItem.Header>
                        <TextBlock Text="报价"  Foreground="#025fae" FontSize="36"/>
                    </controls:PivotItem.Header>
                    <Grid>
                        <TextBlock x:Name="priceResult" Margin="100" Text="没有找到报价的信息" FontSize="20"
						           Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"
                                   Visibility="Collapsed"
								   />
                        <ListBox ItemsSource="{Binding TypePriceItems}" x:Name="TypePriceList" Loaded="FirstListBox_Loaded">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal" Width="470" Margin="5,5,0,5">
                                        <StackPanel Orientation="Vertical">
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                                                <TextBlock Text="{Binding Title}"  Margin="5,9,5,3" Width="40" Foreground="#FF7D7D7D" FontSize="17"/>
                                                <TextBlock Text="{Binding Content}" HorizontalAlignment="Left" Margin="5" TextWrapping="Wrap" Width="300" Foreground="#FF002E73" FontSize="24"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Image Source="/Icon/info/tel_icon.png" Height="40" Width="40" Margin="5,5,5,6"/>
                                                <TextBlock Text="{Binding Keywords}" Margin="5" TextWrapping="Wrap" Width="300" FontSize="24" Foreground="#FF002E73"/>
                                            </StackPanel>
                                        </StackPanel>
                                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="34.667" Foreground="#FFE60012" >
                                        <Run Text="￥" /><Run Text="{Binding Writetime}" /></TextBlock>
                                    </StackPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem  Margin="8,10,0,0" x:Name="Comment" Visibility="Collapsed">
                    <controls:PivotItem.Header>
                        <TextBlock Text="点评"  Foreground="#025fae" FontSize="36"/>
                    </controls:PivotItem.Header>
                    <ScrollViewer  Loaded="FirstListBox_Loaded">
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal" Height="193">
                                <StackPanel Margin="4,4,-4,4" Width="186">
                                    <StackPanel Orientation="Horizontal" Background="#d4dae3">
                                        <TextBlock HorizontalAlignment="Center" Foreground="#626262"  FontSize="18"  Text="平均得分：" VerticalAlignment="Center" Margin="40,5,0,5"/>
                                    </StackPanel>
                                    <StackPanel Background="#ffffff">
                                        <TextBlock HorizontalAlignment="Center" FontSize="44" Height="50"  x:Name="scoreText" 
										 TextWrapping="Wrap" Margin="5,5,0,5" VerticalAlignment="Center" Foreground="#b94901"/>
                                        <local:StarMark x:Name="ScoreStart" Width="174" MarkedFill="Orange" UnMarkedFill="Gray" MaxStars="5" IsEnabled="False" Margin="0,0,0,10" HorizontalAlignment="Center"/>
                                    </StackPanel>
                                    <Button VerticalAlignment="Top" Height="47"  Click="Into_Full_Click" Background="#599df1" BorderThickness="0" Style="{StaticResource ButtonStyle3}">
                                        <StackPanel Orientation="Horizontal">
                                            <Image Stretch="None" Source="/Icon/selectCenter/pen.png" />
                                            <TextBlock Text="写点评"  Foreground="White" FontSize="18" Margin="10,0,0,0"/>
                                        </StackPanel>
                                    </Button>

                                </StackPanel>

                                <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,0,0,0" Width="265" Height="193">

                                    <StackPanel Orientation="Horizontal"  Margin="0,10,0,5" HorizontalAlignment="Center" VerticalAlignment="Center" Width="262">
                                        <TextBlock Text="5星" FontSize="20" Foreground="#626262" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        <ProgressBar  x:Name="sc5" Height="35" Width="180"   Minimum="0" Maximum="100"  Margin="0" 
										Value="10" Background="#dde6f2"  Foreground="#65c6e3" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ProgressBarStyle1}"/>
                                        <TextBlock Margin="0" x:Name="Textsc5" TextWrapping="Wrap" Text="0人" FontSize="18.667" Foreground="#FF626262" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50"/>
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Margin="0,5" VerticalAlignment="Center" HorizontalAlignment="Center">
                                        <TextBlock Text="4星" Foreground="#626262" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        <ProgressBar  x:Name="sc4" Height="28" Width="180"  Minimum="0" Maximum="100" Margin="0" 
										Value="50" Background="#dde6f2" Foreground="#65c6e3"  HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ProgressBarStyle1}"/>
                                        <TextBlock Margin="0" x:Name="Textsc4" TextWrapping="Wrap" Text="0人" FontSize="18.667" Foreground="#FF626262" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50"/>
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal" Margin="0,5" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <TextBlock Text="3星"  FontSize="20"  Foreground="#626262"/>
                                        <ProgressBar  x:Name="sc3" Height="28" Width="180"  Minimum="0"  Maximum="100" Margin="0" 
										Value="40" Background="#dde6f2" Foreground="#65c6e3"  HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ProgressBarStyle1}"/>
                                        <TextBlock Margin="0" x:Name="Textsc3" TextWrapping="Wrap" Text="0人" FontSize="18.667" Foreground="#FF626262" Width="50"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal" Margin="0,5" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <TextBlock Text="2星" FontSize="20" Foreground="#626262" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        <ProgressBar  x:Name="sc2" Height="28" Width="180"   
										Minimum="1" Maximum="100" Margin="0" Value="30" Background="#dde6f2" Foreground="#65c6e3"  HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ProgressBarStyle1}"/>
                                        <TextBlock Margin="0" x:Name="Textsc2" TextWrapping="Wrap" Text="0人" FontSize="18.667" Foreground="#FF626262" Width="50"/>
                                    </StackPanel>


                                    <StackPanel Orientation="Horizontal" Margin="0,5,0,10" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <TextBlock Text="1星" FontSize="20" Foreground="#626262" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        <ProgressBar  x:Name="sc1" Height="28" Width="180"  Minimum="1" Maximum="100" 
										Margin="0" Value="30" FontSize="21.333" Background="#dde6f2" Foreground="#65c6e3"  HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ProgressBarStyle1}"/>
                                        <TextBlock Margin="0" x:Name="Textsc1" TextWrapping="Wrap" Text="0人" FontSize="18.667" Foreground="#FF626262" HorizontalAlignment="Center" VerticalAlignment="Top" Width="50" Height="24.8299999237061"/>
                                    </StackPanel>




                                </StackPanel>
                            </StackPanel>
                            <ListBox Margin="0,5,0,0"  ItemsSource="{Binding TypeCommentItems}" Style="{StaticResource ListBoxStyle1}">
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                            <delay:FoodTemplateSelector.RenderTransform>
                                                <CompositeTransform/>
                                            </delay:FoodTemplateSelector.RenderTransform>
                                            <delay:FoodTemplateSelector.Head>
                                                <DataTemplate >
                                                    <StackPanel Width="480">
                                                        <StackPanel Orientation="Horizontal" Width="480" >
                                                            <StackPanel Width="420" Orientation="Horizontal">
                                                                <TextBlock TextWrapping="Wrap" Text="{Binding Nick}" Margin="5,0,0,0" FontSize="22" Foreground="#0069ac" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                                                <TextBlock TextWrapping="Wrap"   Margin="10,0,0,0" Foreground="#b94901" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center">
                                                                <Run Text="{Binding Score}" />
                                                                </TextBlock>
                                                            </StackPanel>
                                                            <TextBlock TextWrapping="Wrap" Text="{Binding Floor}"  HorizontalAlignment="Center" FontSize="16" Foreground="#a0a0a0" VerticalAlignment="Center"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" Margin="5">
                                                            <StackPanel   Background="#80bdf6" Height="25" Width="50">

                                                                <TextBlock Text="优点"  FontSize="16" HorizontalAlignment="Center" Foreground="White"
																VerticalAlignment="Center" />
                                                                <!--Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"-->
                                                            </StackPanel>
                                                            <TextBlock Text="{Binding Advant}" TextWrapping="Wrap" Width="410" FontSize="20" Margin="10,0,0,0" 
                                                    			  Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal" Margin="5" >
                                                            <StackPanel Background="#80bdf6"  Height="25" Width="50">
                                                                <TextBlock Text="缺点"   FontSize="16"  Foreground="White"
															       HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0"/>
                                                            </StackPanel>
                                                            <TextBlock TextWrapping="Wrap" Text="{Binding Defect}" Width="420"  Margin="10,0,0,0" FontSize="20"
                                                                       Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"
                                                    			/>
                                                        </StackPanel>
                                                    </StackPanel>
                                                </DataTemplate>
                                            </delay:FoodTemplateSelector.Head>
                                            <delay:FoodTemplateSelector.Tail>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Horizontal" Background="Gray" Width="400" Margin="10">
                                                        <TextBlock Text="{Binding Addtime}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="0" FontSize="26.667"/>
                                                    </StackPanel>
                                                </DataTemplate>
                                            </delay:FoodTemplateSelector.Tail>
                                        </delay:FoodTemplateSelector>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                            <TextBlock TextWrapping="Wrap" Text="无点评信息，欢迎您点评！" x:Name="CommetResult"
							           HorizontalAlignment="Center" Margin="0,70,0,0" Visibility="Collapsed"
                                       Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"/>
                        </StackPanel>
                    </ScrollViewer>
                </controls:PivotItem>
                <controls:PivotItem  x:Name="Picture" Margin="12,10,0,0">
                    <controls:PivotItem.Header>
                        <TextBlock Text="图片"  Foreground="#025fae" FontSize="36"/>
                    </controls:PivotItem.Header>
                    <Grid>
                        <ListBox ItemsSource="{Binding TypePictureItems}" Tap="ListBoxImage_Tap">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <toolkit:WrapPanel Orientation="Horizontal"  VerticalAlignment="Top" Margin="0"/>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid  Margin="10" Width="130" Height="150" >
                                        <Image delay:LowProfileImageLoader.UriSource="{Binding Prevurl, Converter={StaticResource FixUrl}}"
                                               Stretch="UniformToFill" VerticalAlignment="Center"  HorizontalAlignment="Center"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                        <TextBlock x:Name="picResult" TextWrapping="Wrap" Text="暂无相关的图片" FontSize="20" Margin="100" TextAlignment="Center"
					           Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}" Visibility="Collapsed" />
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem Margin="12,10,12,0" >
                    <controls:PivotItem.Header>
                        <TextBlock Text="宝典"  Foreground="#025fae" FontSize="36"/>
                    </controls:PivotItem.Header>
                    <cc:TabControl x:Name="BibleTab" TabStripPlacement="Bottom"  SelectionChanged="TabControl_SelectionChanged" Background="{x:Null}" Foreground="{x:Null}" Style="{StaticResource TabControlStyle1}" >
                        <cc:TabItem Header="行情" Style="{StaticResource TabItemStyle1}" Width="90" Height="35" Foreground="#FFF1DCDC" Margin="-1,0,0,0" d:LayoutOverrides="Width">
                            <Grid Margin="-10"  x:Name="BibleMarket" Background="Transparent">
                                <ListBox Margin="0,0,-3,0"   Loaded="FirstListBox_Loaded" ItemsSource="{Binding PoneBibleViewItems}" Tap="ListBox_Tap">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                                <delay:FoodTemplateSelector.RenderTransform>
                                                    <CompositeTransform/>
                                                </delay:FoodTemplateSelector.RenderTransform>
                                                <delay:FoodTemplateSelector.Head>
                                                    <DataTemplate >
                                                        <Grid Width="480" >
                                                            <StackPanel Orientation="Horizontal" Margin="5">
                                                                <TextBlock Text="[行情]"   Margin="0" FontSize="22" Foreground="#898989"/>
                                                                <TextBlock Text="{Binding Title}" FontSize="22"   Margin="0" Foreground="#FF42A4FE"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Head>
                                                <delay:FoodTemplateSelector.Tail>
                                                    <DataTemplate>
                                                        <StackPanel Margin="5" Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Title}"  Margin="0" FontSize="25"/>

                                                        </StackPanel>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Tail>
                                            </delay:FoodTemplateSelector>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <TextBlock x:Name="TextBibleMarket" Text="没有相关的文章" FontSize="20"  Visibility="Collapsed" 
								          Margin="162,144,144,0" VerticalAlignment="Top" d:LayoutOverrides="Height"
										  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                            </Grid>
                        </cc:TabItem>
                        <cc:TabItem  Header="评测" Style="{StaticResource TabItemStyle1}" Width="90">
                            <Grid Background="Transparent" Margin="-10" x:Name="BibleTest">
                                <ListBox Margin="0"   Loaded="FirstListBox_Loaded" ItemsSource="{Binding PoneBibleViewItems}" Tap="ListBox_Tap">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                                <delay:FoodTemplateSelector.RenderTransform>
                                                    <CompositeTransform/>
                                                </delay:FoodTemplateSelector.RenderTransform>
                                                <delay:FoodTemplateSelector.Head>
                                                    <DataTemplate >
                                                        <Grid Width="480" >
                                                            <StackPanel Orientation="Horizontal" Margin="5">
                                                                <TextBlock Text="[评测]"  FontSize="22" Foreground="#898989"/>
                                                                <TextBlock Text="{Binding Title}" FontSize="22"   Margin="0" Foreground="#FF42A4FE"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Head>
                                                <delay:FoodTemplateSelector.Tail>
                                                    <DataTemplate>
                                                        <StackPanel Margin="5" Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="0" FontSize="25"/>

                                                        </StackPanel>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Tail>
                                            </delay:FoodTemplateSelector>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <TextBlock x:Name="TextBibleTest" Text="没有相关的文章" FontSize="20" Visibility="Collapsed"
								          Margin="162,144,144,0" VerticalAlignment="Top" d:LayoutOverrides="Height"
										  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                            </Grid>
                        </cc:TabItem>
                        <cc:TabItem Header="技巧" Style="{StaticResource TabItemStyle1}" Width="90">
                            <Grid Background="Transparent" Margin="-10"  x:Name="BibleSkill">
                                <ListBox Margin="5"   Loaded="FirstListBox_Loaded" ItemsSource="{Binding PoneBibleViewItems}" Tap="ListBox_Tap">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                                <delay:FoodTemplateSelector.RenderTransform>
                                                    <CompositeTransform/>
                                                </delay:FoodTemplateSelector.RenderTransform>
                                                <delay:FoodTemplateSelector.Head>
                                                    <DataTemplate >
                                                        <Grid Width="480" >
                                                            <StackPanel Orientation="Horizontal" Margin="5">
                                                                <TextBlock Text="[技巧]"   FontSize="22" Foreground="#898989"/>
                                                                <TextBlock Text="{Binding Title}" FontSize="22"   Margin="0" Foreground="#FF42A4FE"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Head>
                                                <delay:FoodTemplateSelector.Tail>
                                                    <DataTemplate>
                                                        <StackPanel Margin="5" Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="0" FontSize="25"/>

                                                        </StackPanel>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Tail>
                                            </delay:FoodTemplateSelector>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <TextBlock x:Name="TextBibleSkill" Text="没有相关的文章"   Visibility="Collapsed"
								          Margin="162,144,144,0" VerticalAlignment="Top" d:LayoutOverrides="Height"
										   FontSize="20"
										  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                            </Grid>
                        </cc:TabItem>
                        <cc:TabItem Header="bug" Style="{StaticResource TabItemStyle1}" Width="90">
                            <Grid Background="Transparent" Margin="-10"  x:Name="BibleBug" >
                                <ListBox Margin="5"   Loaded="FirstListBox_Loaded" ItemsSource="{Binding PoneBibleViewItems}" Tap="ListBox_Tap">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                                <delay:FoodTemplateSelector.RenderTransform>
                                                    <CompositeTransform/>
                                                </delay:FoodTemplateSelector.RenderTransform>
                                                <delay:FoodTemplateSelector.Head>
                                                    <DataTemplate >
                                                        <Grid Width="480" >
                                                            <StackPanel Orientation="Horizontal" Margin="5">
                                                                <TextBlock Text="[bug]"   FontSize="22" Foreground="#898989"/>
                                                                <TextBlock Text="{Binding Title}" FontSize="22"   Margin="0" Foreground="#FF42A4FE"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Head>
                                                <delay:FoodTemplateSelector.Tail>
                                                    <DataTemplate>
                                                        <StackPanel Margin="5" Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="0" FontSize="25"/>

                                                        </StackPanel>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Tail>
                                            </delay:FoodTemplateSelector>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <TextBlock x:Name="TextBibleBug" Text="没有相关的文章"  FontSize="20"   Visibility="Collapsed"
								          Margin="162,144,144,0" VerticalAlignment="Top" d:LayoutOverrides="Height"
										  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                            </Grid>
                        </cc:TabItem>
                        <cc:TabItem Header="购机" Style="{StaticResource TabItemStyle1}" Width="92">
                            <Grid Background="Transparent" Margin="-10" x:Name="BibleBuyphone" >
                                <ListBox Margin="0"   Loaded="FirstListBox_Loaded" ItemsSource="{Binding PoneBibleViewItems}" Tap="ListBox_Tap">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                                <delay:FoodTemplateSelector.RenderTransform>
                                                    <CompositeTransform/>
                                                </delay:FoodTemplateSelector.RenderTransform>
                                                <delay:FoodTemplateSelector.Head>
                                                    <DataTemplate >
                                                        <Grid Width="480" >
                                                            <StackPanel Orientation="Horizontal" Margin="5">
                                                                <TextBlock Text="[购机]"  FontSize="22" Foreground="#898989"/>
                                                                <TextBlock Text="{Binding Title}"  FontSize="22"   Margin="0" Foreground="#FF42A4FE"/>
                                                            </StackPanel>
                                                        </Grid>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Head>
                                                <delay:FoodTemplateSelector.Tail>
                                                    <DataTemplate>
                                                        <StackPanel Margin="5" Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="0" FontSize="25"/>

                                                        </StackPanel>
                                                    </DataTemplate>
                                                </delay:FoodTemplateSelector.Tail>
                                            </delay:FoodTemplateSelector>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <TextBlock x:Name="TextBibleBuy" Text="没有相关的文章" FontSize="20"  Visibility="Collapsed"
								          Margin="162,144,144,0" VerticalAlignment="Top" d:LayoutOverrides="Height"
										  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                            </Grid>
                        </cc:TabItem>
                    </cc:TabControl>
                </controls:PivotItem>
            </controls:Pivot>
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Width="480">
            <Grid HorizontalAlignment="Left" Margin="10" VerticalAlignment="Top" Height="100" Width="100">
                <Image  x:Name="defualtImage" HorizontalAlignment="Center"  VerticalAlignment="Center"  Stretch="Uniform"/>
            </Grid>
            <StackPanel Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260">
                <TextBlock x:Name="typePhoneName" Margin="0,5" TextWrapping="Wrap" VerticalAlignment="Top" 
                           Height="34" FontSize="26"  Text="HTC One"
						   Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}" />
                <StackPanel Orientation="Horizontal" Margin="5">
                    <TextBlock HorizontalAlignment="Left" Height="32" Margin="0" TextWrapping="Wrap" Foreground="#FF5C83A8" FontSize="20"
                           VerticalAlignment="Top" Width="85" Text="参考价格:"/>
                    <TextBlock x:Name="Price" Height="32" Margin="10,0,0,0" TextWrapping="Wrap" FontSize="20"
                           Text="800" VerticalAlignment="Top" Foreground="#e60012"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="5">
                    <TextBlock HorizontalAlignment="Left" Height="31" Margin="0" TextWrapping="Wrap" FontSize="20"
                           VerticalAlignment="Top" Width="85" Text="商家报价:" Foreground="#FF5C83A8"/>
                    <TextBlock x:Name="MinPrice"  Height="31" Margin="10,0,0,0" TextWrapping="Wrap" FontSize="20"
                           VerticalAlignment="Top" Foreground="#e60012" Text="600"/>
                    <TextBlock HorizontalAlignment="Right" Height="31" Margin="0" TextWrapping="Wrap" Foreground="#FF5C83A8" FontSize="20"
                           VerticalAlignment="Top" Width="24" Text="至"/>
                    <TextBlock x:Name="MaxPrice"  HorizontalAlignment="Right" Height="35" FontSize="20"
                           Margin="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="57"  
                            Foreground="#e60012" d:LayoutOverrides="HorizontalAlignment" Text="900"/>
                </StackPanel>

            </StackPanel>
            <StackPanel Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top">
                <Button Content="" Height="55" Style="{StaticResource ButtonStyleImage}" Width="55" Margin="0,5,0,0" Click="PK"/>
                <Button Content="" Height="58" Style="{StaticResource ButtonStyle2}" Width="61" Margin="0,10,0,0"  Click="lexun_bbs"/>

            </StackPanel>
        </StackPanel>
        <Popup x:Name="PopFull">
            <Grid Background="#FF938D8D" Height="800" Width="480" Opacity="0.95">
                <ProgressBar  Foreground="Orange" x:Name="ProgBarPop" Visibility="Collapsed"  IsIndeterminate="True" Height="10" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" Grid.ColumnSpan="2"  Width="480" />
                <StackPanel HorizontalAlignment="Center" Height="300" VerticalAlignment="Center" Width="400" Background="Black" Margin="0,0,0,450">
                    <StackPanel Height="70" Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="星级：" Width="70" Margin="5,15,0,0" HorizontalAlignment="Center"/>
                        <local:StarMark x:Name="StartControl"  MarkedFill="Orange" Width="Auto" MaxStars="5" Marked="0" HorizontalAlignment="Left" Height="40" Margin="0,15,0,0" BorderBrush="Transparent" Background="Transparent" VerticalAlignment="Top"/>
                    </StackPanel>
                    <StackPanel Height="80" Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="优点：" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,20,0,0"/>
                        <TextBox x:Name="Advant" TextWrapping="Wrap" Text=""  Width="330" Margin="0,0,0,5"/>
                    </StackPanel>
                    <StackPanel Height="80" Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="缺点：" Margin="5,25,0,0"/>
                        <TextBox x:Name="Defect" TextWrapping="Wrap" Text="" Width="330"  Margin="0"/>
                    </StackPanel>
                    <Button Content="提交" x:Name="Conmmit" HorizontalAlignment="Center" Click="Conmit_Click"/>
                </StackPanel>
            </Grid>
        </Popup>
        <Popup x:Name="ImagePoP">
            <Grid Background="Black" Height="800" Width="480">
                <toolkit:GestureService.GestureListener>
                    <toolkit:GestureListener  Flick="Popup_Flick"  />
                </toolkit:GestureService.GestureListener>
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,100" >
                    <Image  x:Name="image" />
                </StackPanel>
            </Grid>
        </Popup>
        <Popup x:Name="PopShard" Height="349" Margin="155,0,147,0" VerticalAlignment="Top">
            <Canvas Background="#DC001E68" Width="177" VerticalAlignment="Top"  Height="350" >
                <Button Content="同价位" Style="{StaticResource ButtonStyle4}" 
                            Canvas.Top="2" Click="BtnPK_Jia" FontSize="40" Width="208"/>
                <Button Content="同品牌" Style="{StaticResource ButtonStyle4}" Canvas.Top="70" Click="BtnPK_Pin" FontSize="40" Width="208"/>
                <Button Content="同分辨率" Style="{StaticResource ButtonStyle4}" Canvas.Top="144" Click="BtnPK_Fen" FontSize="40" Width="208"/>
                <Button Content="同系统" Style="{StaticResource ButtonStyle4}" Canvas.Top="213" Click="BtnPK_Xi" FontSize="40" Width="208"/>
                <Button Content="其他品牌" Style="{StaticResource ButtonStyle4}" Canvas.Top="280" Click="BtnPK_Qita" FontSize="40" Width="208"/>
            </Canvas>
        </Popup>
    </Grid>
</phone:PhoneApplicationPage>
